#pragma once
#ifndef __FORWARD_RULE_H__
#define __FORWARD_RULE_H__

#include <stdint.h>

struct forward_rule {
    uint16_t src_port;

    uint32_t dst_user;
    uint32_t dst_host;

    uint32_t target_ip;
    uint16_t target_port;
    
    void transform_to_network_byte_order() {

    }
    void transform_to_host_byte_order() {

    }

    bool operator==(forward_rule const& rule) const noexcept{
        return src_port == rule.src_port &&
               dst_user == rule.dst_user &&
               dst_host == rule.dst_host &&
               target_ip == rule.target_ip &&
               target_port == rule.target_port;
    }
};

#endif // __FORWARD_RULE_H__